home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / program / dejava.zip / HelloWorldApp.dis < prev    next >
Encoding:
Text File  |  1996-09-09  |  2.9 KB  |  100 lines

  1.  
  2. DeJAVA, Java Disassembler, Version 1.02
  3. (c) 1996 PFP Software GmbH, Duesseldorf, Germany.
  4.  
  5. Reading: HelloWorldApp.class
  6.  
  7. // Compiled from: HelloWorldApp.java
  8.  
  9. class HelloWorldApp extends java/lang/Object {
  10.  
  11.    static int Limit;
  12.  
  13.    public static void main( String[] ) {
  14.  
  15.      String[] args;           // Slot: 0             Start: 0    Stop: 79
  16.      int j;                   // Slot: 1             Start: 4    Stop: 79
  17.      int i;                   // Slot: 2             Start: 57   Stop: 79
  18.  
  19.      // Max Stack:  2   Max Locals: 3
  20.  
  21.      9:     int j = Limit;
  22.  
  23.            0: GETSTATIC            < Field = int HelloWorldApp.Limit >
  24.            3: ISTORE_1             < Local No. 1 = int j > 
  25.  
  26.     11:     switch (Limit) {
  27.  
  28.            4: GETSTATIC            < Field = int HelloWorldApp.Limit >
  29.            7: TABLESWITCH 1 to 3  Default: 53
  30.               1:     32
  31.               2:     53
  32.               3:     37
  33.  
  34.     12:       case 1:  j = 1;             break;
  35.  
  36.           32: ICONST_1
  37.           33: ISTORE_1             < Local No. 1 = int j > 
  38.           34: GOTO 55
  39.  
  40.     13:       case 3:  j = j==1 ? 17: 12; break;
  41.  
  42.           37: ILOAD_1              < Local No. 1 = int j > 
  43.           38: ICONST_1
  44.           39: IF_ICMPNE 47
  45.           42: BIPUSH 17
  46.           44: GOTO 49
  47.           47: BIPUSH 12
  48.           49: ISTORE_1             < Local No. 1 = int j > 
  49.           50: GOTO 55
  50.  
  51.     14:       default: j = 3;             break;
  52.  
  53.           53: ICONST_3
  54.           54: ISTORE_1             < Local No. 1 = int j > 
  55.  
  56.     17:     for ( int i = 1; i <= Limit; i++ )
  57.  
  58.           55: ICONST_1
  59.           56: ISTORE_2             < Local No. 2 = int i > 
  60.           57: GOTO 71
  61.  
  62.     18:       System.out.println( "Hello World!" );
  63.  
  64.           60: GETSTATIC            < Field = PrintStream System.out >
  65.           63: LDC1                 < String = "Hello World!" >
  66.           65: INVOKEVIRTUAL        < Method = void PrintStream.println( String ) >
  67.  
  68.     17:     for ( int i = 1; i <= Limit; i++ )
  69.  
  70.           68: IINC                 < Local No. 2 = int i >  by 1
  71.           71: ILOAD_2              < Local No. 2 = int i > 
  72.           72: GETSTATIC            < Field = int HelloWorldApp.Limit >
  73.           75: IF_ICMPLE 60
  74.  
  75.     20:     return;
  76.  
  77.           78: RETURN
  78.    }
  79.  
  80.  
  81.    void <init>() {
  82.  
  83.      HelloWorldApp this;      // Slot: 0             Start: 0    Stop: 5
  84.  
  85.      // Max Stack:  1   Max Locals: 1
  86.  
  87.      5: class HelloWorldApp {
  88.  
  89.            0: ALOAD_0              < Local No. 0 = HelloWorldApp this > 
  90.            1: INVOKENONVIRTUAL     < Method = void Object.<init>() >
  91.            4: RETURN
  92.    }
  93.  
  94.  
  95.    static void <clinit>() {
  96.  
  97.  
  98.      // Max Stack:  1   Max Locals: 0
  99.  
  100.      6:   static int Limit = 3;
  101.  
  102.            0: ICONST_3
  103.            1: PUTSTATIC            < Field = int HelloWorldApp.Limit >
  104.  
  105.      5: class HelloWorldApp {
  106.  
  107.            4: RETURN
  108.    }
  109.  
  110.  
  111. }   // End of class HelloWorldApp
  112.